package com.rupertjones.globalcron.resources;

import org.brownflat.dbinit.upgrade.Upgrade;
import org.springframework.stereotype.Component;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
@Component
public class Upgrade0017WaitAfterExecution implements Upgrade {
    @Override
    public int getSequence() {
        return 17;
    }

    @Override
    public String getSql() {
        return "ALTER TABLE `job`\n" +
                "ADD COLUMN `wait_after` INT NULL DEFAULT 0;";
    }

    @Override
    public String getName() {
        return "Add wait after execution";
    }
}
